package inter.controller;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.http.HttpStatus;
import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

import com.dingpeikeji.quickdeer.core.modules.site.entity.TSitedtl;
import com.dingpeikeji.quickdeer.core.modules.site.service.TSitedtlService;

import inter.model.ResultModel;
/**
 * 获取站点接口
 * @author zijuan
 *
 */
@Controller
@RequestMapping(value = "api")
public class GetTSitedtlController {
	@Autowired
	private TSitedtlService tSitedtlService;
	
	/**
	 * 获取站点
	 * @param tSitedtl
	 * @return
	 */
	@RequestMapping(value = "getTSitedtl")
	public ResponseEntity<ResultModel> getTSitedtl(TSitedtl tSitedtl) {
		List<TSitedtl> tSitedtlList =  tSitedtlService.findTSitedtlList(tSitedtl);
		return new ResponseEntity<ResultModel>(ResultModel.ok(tSitedtlList), HttpStatus.OK);
	}


}
